package com.akcome.apollo.domain;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;

/**
 * VIEW
 *
 * @author wn
 * @version $v: 1.0.0, $time:2017-12-26 08:49:00 Exp $
 */
@Entity
@Table(name = "v_mining_workers")
public class VMiningWorkers implements Serializable {

    /**  **/
    private String id;

    /**  **/
    private String cointype;

    /**  **/
    private Long workerId;

    /**  **/
    private Long puid;

    /**  **/
    private Long groupId;

    /**  **/
    private String workerName;

    /**  **/
    private Long accept1m;

    /**  **/
    private Long accept5m;

    /**  **/
    private Long accept15m;

    /**  **/
    private Long accept1h;

    /**  **/
    private Long acceptCount;

    /**  **/
    private Long jobNotFound15m;

    /**  **/
    private Long jobNotFound1h;

    /**  **/
    private Long timeTooOld15m;

    /**  **/
    private Long timeTooOld1h;

    /**  **/
    private Long timeTooNew15m;

    /**  **/
    private Long timeTooNew1h;

    /**  **/
    private Long duplicate15m;

    /**  **/
    private Long duplicate1h;

    /**  **/
    private Long lowDifficuty15m;

    /**  **/
    private Long lowDifficuty1h;

    /**  **/
    private Long other15m;

    /**  **/
    private Long other1h;

    /**  **/
    private Long rejectCount;

    /**  **/
    private String lastShareIp;

    /**  **/
    private Date lastShareTime;

    /**  **/
    private String minerAgent;

    /**  **/
    private Date createdAt;

    /**  **/
    private Date updatedAt;


    @Id
    @Column(name = "id", length = 41)
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Column(name = "cointype", length = 10)
    public String getCointype() {
        return cointype;
    }

    public void setCointype(String cointype) {
        this.cointype = cointype;
    }

    @Column(name = "worker_id", length = 20)
    public Long getWorkerId() {
        return workerId;
    }

    public void setWorkerId(Long workerId) {
        this.workerId = workerId;
    }

    @Column(name = "puid", length = 11)
    public Long getPuid() {
        return puid;
    }

    public void setPuid(Long puid) {
        this.puid = puid;
    }

    @Column(name = "group_id", length = 11)
    public Long getGroupId() {
        return groupId;
    }

    public void setGroupId(Long groupId) {
        this.groupId = groupId;
    }

    @Column(name = "worker_name", length = 20)
    public String getWorkerName() {
        return workerName;
    }

    public void setWorkerName(String workerName) {
        this.workerName = workerName;
    }

    @Column(name = "accept_1m", length = 20)
    public Long getAccept1m() {
        return accept1m;
    }

    public void setAccept1m(Long accept1m) {
        this.accept1m = accept1m;
    }

    @Column(name = "accept_5m", length = 20)
    public Long getAccept5m() {
        return accept5m;
    }

    public void setAccept5m(Long accept5m) {
        this.accept5m = accept5m;
    }

    @Column(name = "accept_15m", length = 20)
    public Long getAccept15m() {
        return accept15m;
    }

    public void setAccept15m(Long accept15m) {
        this.accept15m = accept15m;
    }

    @Column(name = "accept_1h", length = 20)
    public Long getAccept1h() {
        return accept1h;
    }

    public void setAccept1h(Long accept1h) {
        this.accept1h = accept1h;
    }

    @Column(name = "accept_count", length = 11)
    public Long getAcceptCount() {
        return acceptCount;
    }

    public void setAcceptCount(Long acceptCount) {
        this.acceptCount = acceptCount;
    }

    @Column(name = "job_not_found_15m", length = 20)
    public Long getJobNotFound15m() {
        return jobNotFound15m;
    }

    public void setJobNotFound15m(Long jobNotFound15m) {
        this.jobNotFound15m = jobNotFound15m;
    }

    @Column(name = "job_not_found_1h", length = 20)
    public Long getJobNotFound1h() {
        return jobNotFound1h;
    }

    public void setJobNotFound1h(Long jobNotFound1h) {
        this.jobNotFound1h = jobNotFound1h;
    }

    @Column(name = "time_too_old_15m", length = 20)
    public Long getTimeTooOld15m() {
        return timeTooOld15m;
    }

    public void setTimeTooOld15m(Long timeTooOld15m) {
        this.timeTooOld15m = timeTooOld15m;
    }

    @Column(name = "time_too_old_1h", length = 20)
    public Long getTimeTooOld1h() {
        return timeTooOld1h;
    }

    public void setTimeTooOld1h(Long timeTooOld1h) {
        this.timeTooOld1h = timeTooOld1h;
    }

    @Column(name = "time_too_new_15m", length = 20)
    public Long getTimeTooNew15m() {
        return timeTooNew15m;
    }

    public void setTimeTooNew15m(Long timeTooNew15m) {
        this.timeTooNew15m = timeTooNew15m;
    }

    @Column(name = "time_too_new_1h", length = 20)
    public Long getTimeTooNew1h() {
        return timeTooNew1h;
    }

    public void setTimeTooNew1h(Long timeTooNew1h) {
        this.timeTooNew1h = timeTooNew1h;
    }

    @Column(name = "duplicate_15m", length = 20)
    public Long getDuplicate15m() {
        return duplicate15m;
    }

    public void setDuplicate15m(Long duplicate15m) {
        this.duplicate15m = duplicate15m;
    }

    @Column(name = "duplicate_1h", length = 20)
    public Long getDuplicate1h() {
        return duplicate1h;
    }

    public void setDuplicate1h(Long duplicate1h) {
        this.duplicate1h = duplicate1h;
    }

    @Column(name = "low_difficuty_15m", length = 20)
    public Long getLowDifficuty15m() {
        return lowDifficuty15m;
    }

    public void setLowDifficuty15m(Long lowDifficuty15m) {
        this.lowDifficuty15m = lowDifficuty15m;
    }

    @Column(name = "low_difficuty_1h", length = 20)
    public Long getLowDifficuty1h() {
        return lowDifficuty1h;
    }

    public void setLowDifficuty1h(Long lowDifficuty1h) {
        this.lowDifficuty1h = lowDifficuty1h;
    }

    @Column(name = "other_15m", length = 20)
    public Long getOther15m() {
        return other15m;
    }

    public void setOther15m(Long other15m) {
        this.other15m = other15m;
    }

    @Column(name = "other_1h", length = 20)
    public Long getOther1h() {
        return other1h;
    }

    public void setOther1h(Long other1h) {
        this.other1h = other1h;
    }

    @Column(name = "reject_count", length = 11)
    public Long getRejectCount() {
        return rejectCount;
    }

    public void setRejectCount(Long rejectCount) {
        this.rejectCount = rejectCount;
    }

    @Column(name = "last_share_ip", length = 16)
    public String getLastShareIp() {
        return lastShareIp;
    }

    public void setLastShareIp(String lastShareIp) {
        this.lastShareIp = lastShareIp;
    }

    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "last_share_time")
    public Date getLastShareTime() {
        return lastShareTime;
    }

    public void setLastShareTime(Date lastShareTime) {
        this.lastShareTime = lastShareTime;
    }

    @Column(name = "miner_agent", length = 30)
    public String getMinerAgent() {
        return minerAgent;
    }

    public void setMinerAgent(String minerAgent) {
        this.minerAgent = minerAgent;
    }

    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "created_at")
    public Date getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "updated_at")
    public Date getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(Date updatedAt) {
        this.updatedAt = updatedAt;
    }

}
